package com.itheima.service;

import com.itheima.pojo.*;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


public interface EmpService {

    PageResult page(EmpQueryParam empQueryParam);

    /**
     * 添加员工
     * @param emp
     */
    @Transactional(rollbackFor = Exception.class)
    void save(Emp emp) ;

    List<Emp> list();


    void deleteByIds(List<Integer> ids);

    Emp getById(Integer id);


    void update(Emp emp);

    LoginInfo login(Emp emp);
}
